<?php
namespace app\index\model;
use think\Db;
use think\Model;
/*
意见与反馈
 */
class Suggests extends Model
{
	//产品问题
    public static function productSel(){
    	//查询产品问题
    	 $protected=Db::name('product')
    	           ->field('id as productId,productName') 
    	           ->select();    
         return $protected;
    }
    //其他问题
    public static function problemSel(){
    	 $problemd=Db::name('problem')
    	           ->field('id as problemId,problemName')
    	           ->select();    
         return $problemd;
    }
     //添加意见反馈
    public static function feedbackSet($data){
         $feedback=Db::name('user_feedback')
                   ->insert($data);    
         return $feedback;
    }
    
}    